@use '@scss/common' as *;

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(4rem);
  }
  100% {
    opacity: 1;
    transform: translateY(0rem);
  }
}

.stack {
  position: relative;
  display: block;
  width: calc(var(--column) * 14);
  height: calc(var(--column) * 8);

  @include mid-break {
    width: calc(var(--column) * 8);
    height: calc(var(--column) * 5);
  }
}

.mediaOne,
.mediaTwo {
  display: block;
  width: calc(var(--column) * 11);
  height: auto;
  padding: 0.25rem;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0.5rem;
  backdrop-filter: blur(2rem);
  box-shadow: 0px 3rem 4rem 1rem rgba(0, 0, 0, 0.5);
  overflow: hidden;

  & > * {
    display: block;
    border-radius: 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background-color: #141414;
    width: 100%;
    height: 100%;
    box-shadow: 0px 0rem 0.25rem 0rem rgba(0, 0, 0, 0.5);
  }

  @include mid-break {
    width: calc(var(--column) * 7);
  }
}

.mediaOne {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  translate: 0, 4rem;
  opacity: 0;
  animation: fadeIn 2s cubic-bezier(0, 0.2, 0.2, 1) 0.5s forwards;
}

.mediaTwo {
  position: absolute;
  top: auto;
  bottom: 0;
  left: 0;
  z-index: 0;
  translate: 0, 4rem;
  opacity: 0;
  animation: fadeIn 3s cubic-bezier(0, 0.2, 0.2, 1) 1s forwards;
}
